﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace ITTestingSystem.Domain.Entities
{
    /// <summary>
    /// Specifies the users role
    /// </summary>
    /// 
    public class Role
    {
        /// <summary>
        /// Returns the unique identifier in the database table
        /// </summary>
        /// 
        [Key]
        public int Id { get; set; }

        /// <summary>
        /// Returns the unique name of the role
        /// </summary>
        /// 
        [Required]
        public string Name { get; set; }




        /// <summary>
        /// Returns all users in the database with this role
        /// </summary>
        /// 
        public virtual ICollection<User> UsersInRole { get; set; } 
    }
}
